// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.text.Html;
import android.text.TextUtils;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import com.nnee.p_fk.cls_k;
import com.nnee.p_pr.p_activity.p_view.cls_c;
import com.nnee.p_pr.p_atom.cls_aa;
import com.nnee.p_pr.p_atom.cls_ad;
import com.nnee.p_pr.p_atom.cls_g;
import com.nnee.p_pr.p_atom.cls_o;
import com.nnee.p_pr.p_atom.cls_r;
import com.nnee.p_pr.p_atom.cls_u;
import com.nnee.p_pr.cls_b;
import com.nnee.p_pr.p_prot.cls_d;
import java.util.LinkedList;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            SearchActivity, dc

class cls_fx extends cls_b
{

	cls_fx(SearchActivity searchactivity)
    {
        a = searchactivity;
        super();
    }

    public void a()
    {
        a.b();
        SearchActivity.a(a, false);
    }

    public void a(int i, int j, com.nnee.p_pr.p_atom.cls_b b1, String s, boolean flag)
    {
        if(SearchActivity.j(a).contains(new Integer(i)))
        {
            SearchActivity.j(a).remove(new Integer(i));
            com.nnee.p_pr.p_activity.SearchActivity.b(a, false);
            a.b();
            SearchActivity.a(a, false);
            dc.a(SearchActivity.e(a), j);
        }
    }

    public void a(int i, com.nnee.p_pr.p_atom.cls_b b1, cls_d d1, boolean flag)
    {
        if(!SearchActivity.j(a).contains(new Integer(i))) goto _L2; else goto _L1
_L1:
        SearchActivity.j(a).remove(new Integer(i));
        com.nnee.p_pr.p_activity.SearchActivity.b(a, false);
        a.b();
        SearchActivity.a(a, false);
        if(com.nnee.p_pr.p_activity.SearchActivity.k(a) != null) goto _L3; else goto _L2
_L2:
        return;
_L3:
        com.nnee.p_pr.p_activity.SearchActivity.k(a).removeFooterView(SearchActivity.l(a));
        if(d1 != null)
        {
            SearchActivity.a(a, d1, flag);
            if(!flag)
            {
                String s2;
                if(d1.h.size() == 0)
                {
                    String s;
                    int l;
                    SearchActivity searchactivity1;
                    Object aobj1[];
                    if(k.a(a).c())
                        l = 0x7f0a0046;
                    else
                        l = 0x7f0a0047;
                    searchactivity1 = a;
                    aobj1 = new Object[1];
                    aobj1[0] = SearchActivity.m(a);
                    s2 = searchactivity1.getString(l, aobj1);
                } else
                {
                    int j;
                    SearchActivity searchactivity;
                    Object aobj[];
                    if(k.a(a).c())
                        j = 0x7f0a0048;
                    else
                        j = 0x7f0a0049;
                    searchactivity = a;
                    aobj = new Object[2];
                    aobj[0] = Long.valueOf(d1.g.J());
                    aobj[1] = SearchActivity.m(a);
                    s2 = searchactivity.getString(j, aobj);
                }
                if(SearchActivity.n(a) != null)
                {
                    SearchActivity.n(a).setText(Html.fromHtml(s2));
                    SearchActivity.n(a).setVisibility(0);
                }
            }
            s = com.nnee.p_pr.p_activity.SearchActivity.o(a);
            com.nnee.p_pr.p_activity.SearchActivity.c(a, null);
            if(d1.g != null)
            {
                String s1 = d1.g.b(g.i);
                if(!TextUtils.isEmpty(s1))
                    if(s1.equals(s))
                        com.nnee.p_pr.p_activity.SearchActivity.c(a, null);
                    else
                        com.nnee.p_pr.p_activity.SearchActivity.c(a, s1);
            }
        }
        if(true) goto _L2; else goto _L4
_L4:
    }

    public void b(int i, int j, String s, boolean flag)
    {
        if(SearchActivity.j(a).contains(new Integer(i)))
        {
            SearchActivity.j(a).remove(new Integer(i));
            dc.a(SearchActivity.e(a), j);
        }
    }

    public void b(int i, cls_d d1)
    {
        if(d1 != null) goto _L2; else goto _L1
_L1:
        if(SearchActivity.j(a).contains(new Integer(i)))
            SearchActivity.j(a).remove(new Integer(i));
_L4:
        return;
_L2:
        if(d1.j.size() > 0)
        {
            if(SearchActivity.j(a).contains(new Integer(i)))
            {
                SearchActivity.j(a).remove(new Integer(i));
                Toast.makeText(SearchActivity.e(a), 0x7f0a0077, 0).show();
            }
            if(com.nnee.p_pr.p_activity.SearchActivity.k(a) != null)
            {
                cls_c c1 = new cls_c();
                c1.a = ((o)d1.j.getFirst()).a();
                Button button = (Button)com.nnee.p_pr.p_activity.SearchActivity.k(a).findViewWithTag(c1);
                if(button != null)
                {
                    button.setText(0x7f0a0075);
                    button.setCompoundDrawablesWithIntrinsicBounds(0x7f02002b, 0, 0, 0);
                    c1.b = ((c)button.getTag()).b;
                }
                c c2 = new cls_c();
                c2.a = (new StringBuilder()).append(c1.a).append("mark").toString();
                ImageView imageview = (ImageView)com.nnee.p_pr.p_activity.SearchActivity.k(a).findViewWithTag(c2);
                if(imageview != null)
                    imageview.setVisibility(8);
                if(com.nnee.p_pr.p_activity.SearchActivity.d(a) != null)
                {
                    ((com.nnee.p_pr.p_activity.a.ad)com.nnee.p_pr.p_activity.SearchActivity.d(a)).a(aa.b, c1.a);
                    if(((com.nnee.p_pr.p_activity.a.ad)com.nnee.p_pr.p_activity.SearchActivity.d(a)).f(c1.b) != null)
                        ((com.nnee.p_pr.p_activity.a.ad)com.nnee.p_pr.p_activity.SearchActivity.d(a)).f(c1.b).a(aa.b);
                }
            }
        } else
        if(d1.i.size() > 0 && SearchActivity.j(a).contains(new Integer(i)))
        {
            SearchActivity.j(a).remove(new Integer(i));
            Toast.makeText(SearchActivity.e(a), ((r)d1.i.getFirst()).e(), 0).show();
        }
        if(true) goto _L4; else goto _L3
_L3:
    }

    public void b(int i, cls_d d1, boolean flag)
    {
        if(SearchActivity.j(a).contains(new Integer(i)))
        {
            SearchActivity.j(a).remove(new Integer(i));
            if(d1 != null)
                SearchActivity.a(a, d1, false);
        }
    }

    public void d(int i, int j, String s)
    {
        if(SearchActivity.j(a).contains(new Integer(i)))
        {
            SearchActivity.j(a).remove(new Integer(i));
            dc.a(SearchActivity.e(a), j);
        }
    }

    public void e(int i, int j, String s)
    {
        if(SearchActivity.j(a).contains(new Integer(i)))
        {
            SearchActivity.j(a).remove(new Integer(i));
            dc.a(SearchActivity.e(a), j);
        }
    }

    public void f(int i, cls_d d1)
    {
        if(d1 != null) goto _L2; else goto _L1
_L1:
        if(SearchActivity.j(a).contains(new Integer(i)))
            SearchActivity.j(a).remove(new Integer(i));
_L4:
        return;
_L2:
        if(d1.h.size() > 0)
        {
            if(SearchActivity.j(a).contains(new Integer(i)))
            {
                SearchActivity.j(a).remove(new Integer(i));
                Toast.makeText(SearchActivity.e(a), 0x7f0a0076, 0).show();
            }
            if(com.nnee.p_pr.p_activity.SearchActivity.k(a) != null)
            {
                cls_c c1 = new cls_c();
                c1.a = ((u)d1.h.getFirst()).V();
                Button button = (Button)com.nnee.p_pr.p_activity.SearchActivity.k(a).findViewWithTag(c1);
                if(button != null)
                {
                    button.setText(0x7f0a0057);
                    button.setCompoundDrawablesWithIntrinsicBounds(0x7f02002c, 0, 0, 0);
                    c1.b = ((c)button.getTag()).b;
                }
                c c2 = new cls_c();
                c2.a = (new StringBuilder()).append(c1.a).append("mark").toString();
                ImageView imageview = (ImageView)com.nnee.p_pr.p_activity.SearchActivity.k(a).findViewWithTag(c2);
                if(imageview != null)
                    imageview.setVisibility(0);
                if(com.nnee.p_pr.p_activity.SearchActivity.d(a) != null)
                {
                    ((com.nnee.p_pr.p_activity.a.ad)com.nnee.p_pr.p_activity.SearchActivity.d(a)).a(aa.a, c1.a);
                    if(((com.nnee.p_pr.p_activity.a.ad)com.nnee.p_pr.p_activity.SearchActivity.d(a)).f(c1.b) != null)
                        ((com.nnee.p_pr.p_activity.a.ad)com.nnee.p_pr.p_activity.SearchActivity.d(a)).f(c1.b).a(aa.a);
                }
            }
        } else
        if(d1.i.size() > 0 && SearchActivity.j(a).contains(new Integer(i)))
        {
            SearchActivity.j(a).remove(new Integer(i));
            Toast.makeText(SearchActivity.e(a), ((r)d1.i.getFirst()).e(), 0).show();
        }
        if(true) goto _L4; else goto _L3
_L3:
    }

    final SearchActivity a;
}
